import request from '@/utils/request'

// 查询订单状态列表
export function listProductState(query) {
  return request({
    url: '/product/productState/list',
    method: 'get',
    params: query
  })
}

// 查询订单状态详细
export function getProductState(id) {
  return request({
    url: '/product/productState/' + id,
    method: 'get'
  })
}

// 新增订单状态
export function addProductState(data) {
  return request({
    url: '/product/productState',
    method: 'post',
    data: data
  })
}

// 修改订单状态
export function updateProductState(data) {
  return request({
    url: '/product/productState',
    method: 'put',
    data: data
  })
}

// 删除订单状态
export function delProductState(id) {
  return request({
    url: '/product/productState/' + id,
    method: 'delete'
  })
}
